<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<head>
    <script type="text/javascript">
        var grid;
        $(document).ready(function() {
            getTotalInfo();
            grid = $("#logabstractsumTableId").jpgrid({
                url: "getLogAbstractSumListJson.do",
                baseColumns: false,
                columns: [
                    {title : "申请时间", field : "APPLY_DT", width : 100},
                    {title: "所属机构", field: "INST_NAME",width:200},
                    {title: "提现手续费总额", field: "WITHDRAW_FEE",width:100}
                ]
            });
        });

        function doSearch() {
            grid.load({
                ins_cd: $('#ins_cd').val(),
                ins_cn_nm: $('#ins_cn_nm').val(),
                apply_startDate : $('#apply_startDate').val(),
                apply_endDate : $('#apply_endDate').val()
            });
            getTotalInfo();
        }
        function exportFile(url){
            commonFileDownload(url, "logabstractsumForm");
        }
        function getTotalInfo(){
            var data = {
                ins_cd: $('#ins_cd').val(),
                ins_cn_nm: $('#ins_cn_nm').val(),
                apply_startDate : $('#apply_startDate').val(),
                apply_endDate : $('#apply_endDate').val()
            };
            $.ajax({
                url : '../logabstract/getLogAbstractSumTotal.do',
                data : data,
                success : function(result) {
                    $("#WITHDRAW_FEE_SUM").html(result.WITHDRAW_FEE_SUM);
                }
            });
        }
    </script>
</head>
<body class="easyui-layout list_body"  >
<form id="logabstractsumForm" name="logabstractsumgForm">
    <div class="list_body_north" data-options="region:'north'"  border="false" >
        <!-- 查询表单 -->
        <div  class="datagrid-toolbar" border="false"  >
            <span>申请起始日期:</span>
            <input type="text" id="apply_startDate" value="${currentDate}" name="apply_startDate" class="easyui-datebox" data-options="editable:false"/>
            <span>申请结束日期:</span>
            <input type="text" id="apply_endDate" value="${currentDate}" name="apply_endDate" class="easyui-datebox" data-options="editable:false"/>
            <span>机构号:</span>
            <input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
            <span>机构名称:</span>
            <input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
        </div>
        <div style="padding: 3px" class="easyui-panel datagrid-toolbar">
            提现手续费汇总：<span id="WITHDRAW_FEE_SUM"></span>
        </div>
        <!-- 自定义标签工具栏 -->
        <jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
    </div>
    <div data-options="region:'center'" border="false"  class="list_body_center">
        <!-- 表格 -->
        <table id="logabstractsumTableId" fit="true"></table>
    </div>
</form>
</body>
</html>
